package com.principle.visitor;

/**
 * @description:员工信息抽象类
 * @author zhonghong.zhangxg
 * @date 2016年7月12日下午5:01:09
 */
public abstract class Employee {
	public final static int MALE = 0;
	public final static int FEMALE = 1;

	private String name;
	private int salary;
	private int sex;

	// 允许一个访问者访问
    public abstract  void accept(IVisitor visitor);
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getSalary() {
		return salary;
	}

	public void setSalary(int salary) {
		this.salary = salary;
	}

	public int getSex() {
		return sex;
	}

	public void setSex(int sex) {
		this.sex = sex;
	}

}
